{extend name="public/base"}
{block name='main'}
<form class="layui-form layui-form-pane" action="" style="padding:20px;">
    <input type="hidden" name="id" value="{$info.id|default=''}">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" id="username" name="username" lay-verify="username" placeholder="请输入" class="layui-input" value="{$info.username|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="email" id="email" lay-verify="email" placeholder="请输入" class="layui-input" value="{$info.email|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登录密码</label>
        <div class="layui-input-block">
            <input type="password" name="password" id="password" lay-verify="1" placeholder="请输入" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">重复密码</label>
        <div class="layui-input-block">
            <input type="password" name="repassword" id="repassword" placeholder="请输入" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户组</label>
        <div class="layui-input-block">
            <select name="roleid" id="roleid">
                {volist name="role" id="vo"}
                    <option value="{$vo.id}" {eq name="info.roleid|default=''" value="$vo.id"}selected="selected"{/eq}>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item" pane="">
        <label class="layui-form-label">是否启用</label>
        <div class="layui-input-block">
            <input type="radio" title="是" name="status" value="1"  {eq name="info.status|default='1'" value="1"}checked="checked"{/eq}>
            <input type="radio" title="否" name="status" value="0"  {eq name="info.status|default='0'" value="0"}checked="checked"{/eq}>
        </div>
    </div>
    <div class="layui-form-item">
        <label class=""></label>
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="content_edit">提交保存</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="__PUBLIC__/admin/layui/layui.js"></script>
<script>
    layui.use(['layer','jquery','form','element','layedit'], function () {
        //参数：layui、名称、更新的formid、更新的url：module/method、更新后跳转的url（为空则不跳转）、编辑器id、标签id（为空则不获取）
        Oper.initUpdate(layui, '导航', 'content_edit', 'nav/add');
    });
</script>

{/block}